﻿import { _decorator, Component, Node, input, Input, EventKeyboard, KeyCode, loader, assetManager, Texture2D, SpriteFrame, Sprite } from 'cc';
import { UserProp } from '../../prop/UserProp';
import { BubbleTipDlgCom } from '../../dlg/dlgcom/BubbleTipDlgCom';
import { SysMgr } from '../../common/SysMgr';
import { DlgSys } from '../../sys/DlgSys';
import { DemoDlgCom } from '../../dlg/dlgcom/DemoDlgCom';




const { ccclass, property } = _decorator;

@ccclass('NRecvCommon')
export class NRecvCommon {
    static async recvUserNickName(data) {
        UserProp.ins.setValue("user_nick_name", data.user_nick_name)
    }

    static async recvWsTest(data) {
        SysMgr.getSys(DlgSys).getDlgCom(DemoDlgCom)?.refreshWsSendLabel(data.value)
    }


    static async openBubbleTipDlg(data) {
        await BubbleTipDlgCom.createTip(data.msg);
    }




    static async connSucc(data) {

    }

}

